import java.util.*;
public class demo02 {
    //直线
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        HashSet<String> kb = new HashSet<String>();
        int x = 0;
        int y = 0;
        HashSet<Integer> a1 = new HashSet<>();
        for (x = 0; x < 20; x++) {
            for (y = 0; y < 21; y++) {
                a1.add(x * 100 + y);
            }
        }
        ArrayList<Integer> arr = new ArrayList<>(a1);
        for (int i = 0; i < x * y; i++) {
            int x1 = arr.get(i) / 100;
            int y1 = arr.get(i) % 100;
            for (int j = i + 1; j < x * y; j++) {
                int x2 = arr.get(j) / 100;
                int y2 = arr.get(j) % 100;
                int kup = y1 - y2;
                int kdown = x1 - x2;
                if (kdown != 0 && kup != 0) {
                    int kgcd = gcd(kup, kdown);
                    kup /= kgcd;
                    kdown /= kgcd;
                    int bup = y1 * kdown - kup * x1;
                    int bdown = kdown;
                    int bgcd = gcd(bup, bdown);
                    bup /= bgcd;
                    bdown /= bgcd;
                    String s = kup + " " + kdown + " " + bup + " " + bdown;
                    kb.add(s);
                }
            }
        }
        System.out.println(kb.size()+21+20);
    }
    private static int gcd(int a,int b) {
        int c=a%b;
        while(c!=0) {
            a=b;
            b=c;
            c=a%b;
        }
        return b;
    }
}
